home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global shipx, fire1, fire2, fire3, fire4, fire5, key, direct, backpos1, backpos2, alienship, count, clear, shipcast, collide, repeet, next, shoot1, shoot2, shoot3, shoot4, kazi, dive, alienup, done, alienx, alieny, alienblow, lupe, times, level, men, freeze
- when keyDown then nothing
- put men into field "MEN"
- put level into field "WAVE"
- set backpos1 to 400
- set backpos2 to 394
- set next to 0
- set freeze to 1
- set lupe to 0
- set times to 0
- set repeet to 0
- set alienup to 0
- set dive to 0
- set kazi to 0
- if (clear > 0) or (done > 0) then
- set direct to random(2)
- if direct = 2 then
- set direct to -1
- end if
- end if
- set key to 0
- set fire1 to 0
- set fire2 to 0
- set fire3 to 0
- set fire4 to 0
- set fire5 to 0
- set shipx to 296
- set shoot1 to 0
- set shoot2 to 0
- set shoot3 to 0
- set shoot4 to 0
- set collide to 0
- set shipcast to 1
- set clear to 0
- set done to 0
- set count to 1
- set alienship to 4
- set alienx to []
- set alieny to []
- repeat with q = 3 to 44
- puppetSprite(q, 0)
- end repeat
- repeat with q = 1 to 33
- addAt(alienx, q, the locH of sprite (q + 2))
- addAt(alieny, q, the locV of sprite (q + 2))
- end repeat
- repeat with q = 3 to 35
- puppetSprite(q, 1)
- if getAt(alienblow, q - 2) <> 6 then
- deleteAt(alienblow, q - 2)
- addAt(alienblow, q - 2, 0)
- set the castNum of sprite q to 3
- set the locH of sprite q to 296
- set the locV of sprite q to 500
- next repeat
- end if
- if (q = 11) or (q = 12) or (q = 15) or (q = 16) or (q = 20) or (q = 21) or (q = 24) or (q = 25) or (q = 28) or (q = 29) then
- set the castNum of sprite q to 4
- else
- if (q = 4) or (q = 8) or (q = 10) or (q = 13) or (q = 14) or (q = 18) or (q = 19) or (q = 22) or (q = 23) or (q = 27) or (q = 33) or (q = 35) then
- set the castNum of sprite q to 6
- else
- if (q = 3) or (q = 5) or (q = 6) or (q = 7) or (q = 9) or (q = 17) or (q = 26) or (q = 30) or (q = 31) or (q = 32) or (q = 34) then
- set the castNum of sprite q to 8
- end if
- end if
- end if
- set the locH of sprite q to getAt(alienx, q - 2)
- set the locV of sprite q to getAt(alieny, q - 2)
- end repeat
- repeat with q = 36 to 44
- puppetSprite(q, 1)
- end repeat
- end
-